package base.yincang_study;

public class ZiLei extends YinCang{
	
	public static void fangfa(){
		System.out.printf("子类静态方法\n");
	}
	public static void main(String[] args) {
		YinCang.fangfa();
		ZiLei.fangfa();
		YinCang a= new ZiLei();
		ZiLei b= new ZiLei();
		b=(ZiLei) a;
		a.fangfa();//调用的还是父类的静态方法
		b.fangfa();//调用的是zi类的静态方法
	}

}
